package org.jianfa.homework.code.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.jianfa.homework.api.CodeService;
import org.jianfa.homework.code.service.InternalCodeService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class CodeServiceImpl implements CodeService {

    @Autowired
    private InternalCodeService internalCodeService;

    @Override
    public Integer validate(String email, String code) {
        //验证验证码
        Integer validate = internalCodeService.validate(email, code);

        return validate;
    }
}
